<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="school.dao.*,school.entity.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'grade.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
		li{list-style: none;}
	</style>
  </head>
  
  <body>
    <h1>班级列表</h1>
    <ul >
    <%
    	List<Grade> datas=GradeDao.DAO.getAll();
    	for(Grade s:datas)
    	{
    		//out.print("<li>"+s.getStuno()+","+s.getSname()+","+s.getTelephone()+"</li>");
    %>
    	<li style="width:200px;border:2px groove red;margin-top:10px;"><%=s.getId()%>,<%=s.getGname()%></li>
    <%} %>
    </ul>
  </body>
</html>
